<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Loseform</title>
 <link href="${scripts}/tabledefine/ueditor/themes/formpage.css" rel="stylesheet" type="text/css">
<script src="${cdnAddress}/js/boot.js${cacheVersion}" type="text/javascript"></script>
<script src="${cdnAddress}/js/util.js${cacheVersion}" type="text/javascript"></script>
</head>
<body>
<input type="hidden" id="projectName" value="${projectName}" />
<div class="table-border">
  <div class="table-shadow">
	<form id="form1" method="post">
		<div>
			<div  id="baseinfo">
					 <input class="mini-hidden" id="id" name="id" />
					 <input  class="mini-hidden"  type="hidden" id="orgId" name="orgId"  value="${orgId }"/>
					 <table  class="base-table" cellspacing="0" cellpadding="0" uetable="null">
					 <tr>
          				<th style="" colspan="6"> <strong><span>丢失单</span></strong> </th>
       				 </tr>
				<tr>
				<td>组织机构</td><td>
				<span><input   class="mini-textbox"   id="orgName" name="orgName" readonly="true" value="${orgName }"/></span></td>
				<td>业务单号</td><td>
				<span><input  class="mini-textbox"   id="woNo" name="woNo" readonly="true" value="${woNo}"/></span></td>
				</tr><tr class="commonTr">
				<td>申请类型</td><td>
				<span><input required class="mini-combobox"  id="type" name="type" allowInput="false" textField="dicName"  valueField="dicVal" url="${projectName }/DictionaryAdmin/queryDictionaryByTypeIds?typeids=76" onvaluechanged="onTypeChanged" /></span></td>
				<td>申请店铺</td><td>
				<span><input required class="mini-buttonedit"   id="shopId" name="shopId" onbuttonclick="onButtoneShopEdit"/>
				<input  class="mini-hidden"   id="shopName" name="shopName"/></span></td>
				</tr><tr >
				<td>申请仓库地点</td><td>
				<span><input required class="mini-buttonedit" allowInput="false" onbuttonclick="onSelectStoragePhy"   id="storagePhyId" name="storagePhyId" />
				<input  class="mini-hidden"   id="storagePhyName" name="storagePhyName" /></span></td>
				<td>申请仓库名称</td><td>
				<span><input required class="mini-buttonedit" allowInput="false" onbuttonclick="onSelectStorage"  id="storageId" name="storageId" />
				<input  class="mini-hidden"  id="storageName" name="storageName" /></span></td>
				</tr><tr class="commonTr">
				<td>接收仓库地点</td><td>
				<span><input required class="mini-buttonedit" allowInput="false" onbuttonclick="onSelectStoragePhyIn"   id="inStoragePhyId" name="inStoragePhyId" />
				<input  class="mini-hidden"  id="inStoragePhyName" name="inStoragePhyName" /></span></td>
				<td>接收仓库名称</td><td>
				<span><input required class="mini-buttonedit" allowInput="false" onbuttonclick="onSelectStorageIn"  id="inStorageId" name="inStorageId" />
				<input  class="mini-hidden"   id="inStorageName" name="inStorageName" /></span></td>
				</tr><tr class="commonTr">
				<td>提交人</td><td>
				<span><input  class="mini-textbox"   id="createUser" name="createUser" readonly="true" value="${createUser }"/></span></td>
				<td>提交日期</td><td>
				<span><input  class="mini-datepicker"  id="createTime" name="createTime" readonly="true" value="${createTime }"/></span></td>
				</tr><tr class="commonTr">
				<td>丢失理由</td><td colspan="3">
				<span><input required class="mini-textarea"  id="reason" name="reason" /></span></td>
				</tr>
				</table>
		</form>	
		<h3 class="gridtitle">丢失设备清单</h3>	
    <a id="addloselist" class="mini-button" iconCls="icon-add" onclick="add()">新增</a>
                        <a id="deleteloselist"class="mini-button" iconCls="icon-remove" onclick="remove()">删除</a>    
     <div id="datagrid1" class="mini-datagrid" style="width:100%;height:280px;" allowResize="true" 
        url="${projectName }/LoseformBarcodeAdmin/ListAll"  idField="id" multiSelect="true" showPager="false">
        <div property="columns">
            <div type="indexcolumn"></div>   
               <div type="checkcolumn" ></div>        
            <div field="eqTypeName" width="120" headerAlign="center"  >设备类型</div>    
            <div field="eqType"  visible="false" width="120" headerAlign="center"  >设备类型ID</div>    
            <div field="eqNum" width="120" headerAlign="center"  >数量</div>    
            <div field="handle" width="120" renderer="onHandle" headerAlign="center"  >操作</div>    
        </div>
    </div>
			</div>
		</div>
	</div>
	</div>
<div class="btn-con">
<!--   <button onclick="saveForm()" id ="saveId">保存</button> -->
  <button onclick="submitForm()" id ="submitId">提交</button>
</div>
<script src="${scripts}/loseform/LoseFormSubmit.js${cacheVersion}" type="text/javascript"></script>
</body>
</html>